<ui:composition xmlns:p='http://primefaces.org/ui'
                xmlns:h='http://java.sun.com/jsf/html'
                xmlns:ui='http://java.sun.com/jsf/facelets'
                xmlns:z='http://savanti.com.bo/ui'
                xmlns:x='http://java.sun.com/jsf/composite/ui/component'>

<p:fieldset id='#{bean.name}Dialog' style='min-width: 350px; min-height: 200px' styleClass='ui-shadow ui-Form' rendered='#{!bean.form and bean.dialog}'>

<p:toolbar styleClass='toolBar'>

<p:toolbarGroup style='width: 100%; height: 15px'>

<h:panelGrid columns='3' cellpadding='0' cellspacing='0' width='100%'>

  <x:fieldL b='#{bean}' v='#{bean.entitySelField}' w='95px' t='Propiedad' list='#{bean.entityLsField}' x='s'/>

  <p:commandLink title='Guardar'  actionListener='#{bean.uiDialog}'  update='@(.#{bean.name})'

                 styleClass='ui-dialog-titlebar-save' style='float: left'><span class='ui-icon ui-icon-save'/></p:commandLink>

  <p:commandLink title='Cancelar'  actionListener='#{bean.uiDialog}'  update='@(.#{bean.name})'

                 styleClass='ui-dialog-titlebar-close' style='float: right'><span class='ui-icon ui-icon-closethick'/></p:commandLink>

</h:panelGrid>

</p:toolbarGroup>

</p:toolbar>


<p:fileUpload label='' auto='true' update='#{bean.name}Dialog' fileUploadListener='#{bean.updateMaster}' dragDropSupport='true' mode='avanced' allowTypes='/(\.|\/)(xls|xlsx)$/' style='width:100%'/>



    <p:dataTable value='#{bean.lsUpdEntity}' var='x' paginator='true' paginatorPosition='bottom' rows='#{rows== null? 15 : rows}'

                 emptyMessage='' paginatorAlwaysVisible='false' filteredValue='#{bean.lsFiltered}'>

    <z:columnT t='Descripcion'    v='#{x.nombre}'/>

    <z:columnT t='Codigo'    v='#{x.codigo}'/>

    <z:columnT t='#{bean.entitySelField}'    v='#{x.rapido}'/>

    </p:dataTable>

</p:fieldset><p:draggable for='#{bean.name}Dialog'/>

</ui:composition>